﻿<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="DishesList.ascx.cs"
    Inherits="BuXiaChu.OrderDishes.Web.CallCenter.Modules.DishesList" %>
<table class="list">
    <tr style="background-color: Silver;">
        <td>
            菜品名称
        </td>
        <td>
            单价
        </td>
        <td>
            单位
        </td>
        <td>
            菜品类别
        </td>
        <td>
            餐厅名称
        </td>
        <td>
            备注
        </td>
    </tr>
    <% foreach (var item in pageDataList)
       {%>
       <textarea style="display:none;" id="txt_DishesJSON_<%=item.CodeId %>"><%=SerializeData(item)%></textarea>
    <tr ondblclick="orderManager.selectDishes(<%=item.CodeId %>)">
        <td>
            <%= HttpUtility.HtmlEncode(item.Name) %>            
        </td>
        <td>
            <%= item.Price.ToString("F2") %>
        </td>
        <td>
            <%= BuXiaChu.OrderDishes.BLL.CodeDictionary.Instance.GetCodeName(item.Unit)%>
        </td>
        <td>
            <%= GetDishesCatName(item.CatID)%>
        </td>
        <td>
            <%= HttpUtility.HtmlEncode(RestaurantName) %>
        </td>
        <td>
            <%= HttpUtility.HtmlEncode(item.InternalRemarks) %>
        </td>
    </tr>
    <%} %>
</table>
